<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="menuList.title"/></title>
    <meta name="heading" content="<fmt:message key='menuList.heading'/>"/>
    <meta name="menu" content="Contenido"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editMenu.html"/>'"
        value="<fmt:message key="button.add"/>"/>
    
    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="menus" value="menus" scope="request"/>
<display:table name="menus" class="table" requestURI="" id="menuList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editMenu.html" 
        paramId="id" paramProperty="id" titleKey="menu.id"/>
    <display:column property="name" sortable="true" titleKey="menu.Name"/>
   	<display:column title="Acciones">
   		<a href="editMenu.html?id=<c:out value="${menuList.id}"/>">Editar</a>
   		<a href="changeOrderMenu.html?id=<c:out value="${menuList.id}"/>">Orden de items</a>
	</display:column>    
    
    <display:setProperty name="paging.banner.item_name" value="menu"/>
    <display:setProperty name="paging.banner.items_name" value="menues"/>

    <display:setProperty name="export.excel.filename" value="Menu List.xls"/>
    <display:setProperty name="export.csv.filename" value="Menu List.csv"/>
    <display:setProperty name="export.pdf.filename" value="Menu List.pdf"/>
    
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("menuList",true);
</script>